﻿#include "toastutil.h"

#include <QString>


ToastUtil::ToastUtil(){

};

void ToastUtil::showToast(QString msg){
    QObject* object = AppUtil::ENGINE->rootObjects().at(0);
    // object->setProperty("width",100);
    QObject* item = object->findChild<QObject*>("toast");
    QMetaObject::invokeMethod(item, "showToast", Q_ARG(QVariant, msg));
}
